#pragma once

char *StringToArray(String *st)
{
	char *temp = 0;

	temp = new char[st->Length + 1];

	for(int i = 0; i < st->Length; i++)
	{
		temp[i] = st->Chars[i];
	}

	temp[st->Length] = '\0';

	return temp;
}

String *ArrayToString(char *st)
{
	String *temp = System::Runtime::InteropServices::Marshal::PtrToStringAnsi(st);

	return temp;
}